package widget.drag;

/**
 * Created by apple on 2017/4/14.
 */

public class DragRange {
    int top = -1;
    int bottom = -1;

    public DragRange(int top) {
        this.top = Math.max(0, top);
    }

    public DragRange(int top, int bottom) {
        this.top = Math.max(0, top);
        this.bottom = Math.max(top, bottom);
    }

    public int getTop() {
        return top;
    }

    public int getBottom() {
        return bottom;
    }

    @Override
    public String toString() {

        return "Drag Range :[" + top + "," + bottom + "]";
    }
}
